package com.ricettario.ricettario;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.widget.TextView;

public class CategoryMenu extends Activity {

	private static final String CLASS_TAG = "CategoryMenu";
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_category_menu);
        //these operation have to be executed after the setContentView
        Intent intent = getIntent();
        String username = intent.getStringExtra(RicettarioMain.EXTRA_MESSAGE);
        Log.i(CLASS_TAG, "username received: " + username);
        TextView usernameTextView = (TextView) findViewById(R.id.usernameTextView);
        usernameTextView.setText(username);
        
        

//        getActionBar().setDisplayHomeAsUpEnabled(true);
    }

   /* @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_category_meny, menu);
        return true;
    }*/

    
   /* @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        switch (item.getItemId()) {
            case android.R.id.home:
                NavUtils.navigateUpFromSameTask(this);
                return true;
        }
        return super.onOptionsItemSelected(item);
    }*/

}
